package com.zuxia.service;

import com.zuxia.dto.ShopDto;
import com.zuxia.dto.ShopReleaseDto;
import com.zuxia.entity.Group;
import com.zuxia.entity.PageDto;
import com.zuxia.entity.Shop;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zuxia.param.ShopPageParam;
import com.zuxia.param.ShopReleasePageParam;
/**
 * <p>
 *  服务类
 * </p>
 *
 * @author laoli
 * @since 2024-11-14
 */

public interface ShopService extends IService<Shop> {
    //商品分页查询
    PageDto<ShopDto> getShopListPage(ShopPageParam shopPageParam) throws Exception;

    //根据id查询商品
    ShopDto getShopById(String id) throws Exception;

    //修改商品库存
    boolean upShopNumById(String id, Long num);

    //上架商品查询
    PageDto<ShopReleaseDto> getShopReleaseListPage(ShopReleasePageParam shopReleasePageParam) throws Exception;

    //单查上架商品信息
    ShopReleaseDto getShopReleaseById(String id) throws Exception;



}
